from _typeshed import Incomplete

class SerDe:
    def serialize(self, obj): ...
    def deserialize(self, bytes_obj, obj_cls: Incomplete | None = ...): ...
